package com.neuedu.jdboot.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @author chens
 *
 */
public class Admin implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3049734972260106358L;
	private Integer id;
	private String account;
	private String password;
	private String salt;
	private Integer sex;
	private String mobile;
	private String email;
	private String address;
	private Integer status = new Integer(0);
	private Integer flag = new Integer(0);
	private Date hireDate;

	/**
	 * 使用对象保存数据关系
	 */
	private Role role;
	
	private String headImage;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Date getHireDate() {
		return hireDate;
	}

	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}
	
	
	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Admin() {
		super();
	}

	public Admin(Integer id, String account, String password, String salt, Integer sex, String mobile, String email,
			String address, Integer status, Integer flag, Date hireDate, Role role, String headImage) {
		super();
		this.id = id;
		this.account = account;
		this.password = password;
		this.salt = salt;
		this.sex = sex;
		this.mobile = mobile;
		this.email = email;
		this.address = address;
		this.status = status;
		this.flag = flag;
		this.hireDate = hireDate;
		this.role = role;
		this.headImage = headImage;
	}

	@Override
	public String toString() {
		return "Admin [id=" + id + ", account=" + account + ", password=" + password + ", salt=" + salt + ", sex=" + sex
				+ ", mobile=" + mobile + ", email=" + email + ", address=" + address + ", status=" + status + ", flag="
				+ flag + ", hireDate=" + hireDate + ", role=" + role + ", headImage=" + headImage + "]";
	}

	
	
	

}
